package cn.wk.org.mapper;

import cn.wk.basic.mapper.BaseMapper;
import cn.wk.org.domain.Department;
import cn.wk.basic.query.DeptQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DepartmentMapper extends BaseMapper<Department>{

    //查询上级部门
    List<Department> findParent();

    //通过父id去查询子部门
    List<Department> findByParentId(Long id);

}
